<template>
	<view class="page-box">
		<view class="d-flex">
			<text>gobalData姓名:{{$globalData.userInfo.nickName}}</text>
			<button type="primary" size="mini" @tap="$storage.setAppUserInfo({
				nickName:Math.random()*10
			})">修改gobal姓名</button>
		</view>
		
		<view class="d-flex">
			<text>vuex姓名2:{{vuex_user.name}}</text>
			<button type="primary" size="mini" @tap="$u.vuex('vuex_user.name',Math.random()*10)">修改vuex姓名</button>
		</view>
		
		<view class="d-flex">
			<button type="primary" size="mini" @tap="$cw.payOrder(11,'CFCDAC1E-D56E-4D90-0532-08DB1F78CD68','开店码升级','/pages/10homeSub/partnerInfo/partnerInfo','/pages/10homeSub/rewardDistributionDecord/rewardDistributionDecord')">微信支付</button>
		</view>
		
		<view>
			lodash测试:<text>{{$_(String($globalData.userInfo.nickName)).last()}}</text>
		</view>
		
		<view>
			moment测试:<text>{{$moment().format('YYYY-MM-DD')}}</text>
		</view>
		
		<view>
			filter测试:{{$options.filters['fmtTest']('aaa')}}
		</view>
		
		<button type="primary" size="mini" @tap="$u.vuex('vuex_user.name',Math.random()*10)">扫码</button>
		
		<!--内容-->
		<view class="page-center">
			<uni-list>
				<uni-list-item title="公用样式测试" link to="/pages/20demoSub/testStyle/testStyle"></uni-list-item>
				<uni-list-item title="学生测试" link to="/pages/20demoSub/demoIndex/demoIndex"></uni-list-item>
				<uni-list-item title="学生测试2" link to="/pages/20demoSub/studentTest/studentTest"></uni-list-item>
				<uni-list-item title="webview测试" link to="/pages/_common/webView/webView"></uni-list-item>
			</uni-list>
		</view>

		<!--底部-->
		<view class="page-bottom"></view>
	</view>
</template>

<script>
export { default } from './demo.js';
</script>

<style lang="less" scoped>
@import url('demo.less');
</style>
